package itdep.domain.address;

import itdep.domain.NamedEntity;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Ivan Khalopik
 * @version $Revision: 47 $ $Date: 2010-07-05 09:28:44 +0000 (Mon, 05 Jul 2010) $
 */
@Entity
@Table(name = "COUNTRY")
public class Country extends NamedEntity {

	@OneToMany(mappedBy = "country")
	private Set<Region> regions = new HashSet<Region>();

	public Set<Region> getRegions() {
		return regions;
	}
}